package cn.hutool.core.lang.tree;

import java.util.List;

/**
 * 将业务实体类包装成树节点类型
 *
 * @param <T> 实体泛型
 * @author nick_wys
 */
public class CommonTree<T> {

	private List<CommonTree<T>> children;

	private T self;

	public CommonTree() {
	}

	public CommonTree(List<CommonTree<T>> children, T self) {
		this.children = children;
		this.self = self;
	}

	public List<CommonTree<T>> getChildren() {
		return children;
	}

	public void setChildren(List<CommonTree<T>> children) {
		this.children = children;
	}

	public T getSelf() {
		return self;
	}

	public void setSelf(T self) {
		this.self = self;
	}
}
